import 'package:freezed_annotation/freezed_annotation.dart';
part 'jzx_author_data.freezed.dart';
part 'jzx_author_data.g.dart';

@freezed
class JzxAuthorData with _$JzxAuthorData {
  const factory JzxAuthorData({
    @Default('') String userId,
    @Default('') String nickname,
    @Default('') String avatar,
    @Default('') String avatarMapPath,
    @Default(0) int gender,
    @Default(0) int age,
    @Default('') String country,
    @Default('') String status,
    @Default(0) int callCoins,
    @Default('') String unit,
    @Default([]) List<String> videoMapPaths,
    @Default(0) int followNum,
    @Default(false) bool isFriend,
    @Default(false) bool isMultiple,
    @Default('') String about,
    @Default(0) int grade,
    @Default('') String analysisLanguage,
    @Default(false) bool isSignBroadcaster,
    @Default(0) int showRoomVersion,
    @Default(0) int broadcasterType,

    /// 额外补充
    @Default(0) int level,


    /// 额外补充
    @Default(false) bool isFollowed,
    
  }) = _JzxAuthorData;

  factory JzxAuthorData.fromJson(Map<String, dynamic> json) =>
      _$JzxAuthorDataFromJson(json);
}
